import { auth } from '../servicePath'
export default ({ service, request, serviceForMock, requestForMock, mock, faker, tools }) => ({
  admin_role_getPageList (params) {
    return request({
      url: `${auth}/admin/role/getPageList`,
      method: 'POST',
      params
    })
  },
  admin_role_add (data) {
    return request({
      url: `${auth}/admin/role/add`,
      method: 'POST',
      data
    })
  },
  admin_role_update (data) {
    return request({
      url: `${auth}/admin/role/update`,
      method: 'POST',
      data
    })
  },
  admin_role_delete (data) {
    return request({
      url: `${auth}/admin/role/delete`,
      method: 'POST',
      data
    })
  },
  admin_role_get (params) {
    return request({
      url: `${auth}/admin/role/get`,
      method: 'POST',
      params
    })
  },
  admin_role_getList (data) {
    return request({
      url: `${auth}/admin/role/getList`,
      method: 'POST',
      data
    })
  }
})
